
{{if $reg == 1}}
 <form method="post" action="{{$action}}" name="regform" ENCTYPE="multipart/form-data" onSubmit="return chkform(this)"> 
{{/if}}

	<div id="page">
	<div id="page-bgtop">
	<div id="page-bgbtm">
		<div id="content">
			<div class="post">
			<div class="post-bgtop">
			<div class="post-bgbtm">
				<h2 class="title"><a href="#">{{$LDListaPermisos}}</a></h2>
					
				<div class="entry">
					<p>
                                        {{$Message}}
                                        <h2 class="title">
						<table width=100% border=0>
							<tr>
								<td width=20%>
									<a href="#">{{$LDRol}}</a>
								</td>
								<td width=50%>
									<a href="#">{{$LDRecurso}}</a>
								</td>
								<td width=20%>
									<a href="#">{{$LDPermiso}}</a>
								</td>
								<td width=10%>
									<a href="#">{{$LDEstado}}</a>
								</td>
							</tr>
						</table>
					</h2>
                                            {{section name=g loop=$gui}}
                                        <div class="table">
                                                <table width=100% border=0>
							<tr>
								<td width=20%>
									<a >{{$gui[g].id_role}}</a>
								</td>
								<td width=50%>	
									<a >{{$gui[g].id_resource}}</a>
                                                                </td>
								<td width=20%>
									<a >{{$gui[g].action}}</a>
                                                                </td>
								<td width=10%>
									{{if $gui[g].status == 1}}
                                                                                <a href="{{$root_path}}/modules/rbac/{{$action}}&id_resource={{$gui[g].id_resource}}&id_role={{$gui[g].id_role}}&s={{$gui[g].status}}&p={{$gui[g].action}}&lang={{$lang}}" ><img src="ondot.gif" alt="Activar" align="absmiddle"></a>
                                                                            {{else}}
                                                                                <a href="{{$root_path}}/modules/rbac/{{$action}}&id_resource={{$gui[g].id_resource}}&id_role={{$gui[g].id_role}}&s={{$gui[g].status}}&p={{$gui[g].action}}&lang={{$lang}}" ><img src="offdot.gif" alt="Desactivar" align="absmiddle"></a>
                                                                            {{/if}}
                                                                </td>
							</tr>
						</table>
					</div>
                                            {{/section}}

					</p>
				</div>
			</div>
			</div>
			</div>
			
		<div style="clear: both;">&nbsp;</div>
		</div>

		<div id="sidebar">
				<ul>
					<li>
						<h2>{{$LDCategorias}}</h2>

						{{include file="rbac/MenuRbac.tpl"}}
						<script type="text/javascript">

						cssdropdown.startchrome("chromemenu")

						</script>
				</li>
			</ul>
		</div>

		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	</div>
</div>

<p>
{{if $reg == 1}}
	{{$pbSubmit}}
	{{$pbReset}}
{{else}}
	{{$pbResponse}}
	{{$pbEdit}}
	{{$pbAsignar}}
        {{$pbBitacora}}
{{/if}}
</p>
</form>

<script>
{{if $showSoap}}
     request_soap();
{{/if}}
show_basicdata();
showTrasladoNoAdherencia();
</script>
